package com.gome.rb.entity;

import java.util.Date;

public class RefundBalanceBean {
	private static final long serialVersionUID = 1L;
	public static final String TASKSTATE_UNHANDLE = "1";
	public static final String TASKSTATE_SENDING = "2";
	public static final String TASKSTATE_SENDFINISH = "3";
	public static final String TASKSTATE_SENDFAILURE = "4";
	public static final String TASKSTATE_EXCEPTION = "5";
	//原路退款单 退款状态如果是A的话推送ATG
	public static final String REFUNDTATE_UNHANDLE ="N";
	//原路退款单 退款状态如果是A的话推送ATG
	public static final String REFUNDTATE_SENDFINISH ="A";
	//提现单 退款状态如果是B的话推送ATG
	public static final String REFUNDTATE_SENDTOATG ="B";

	
	private String accountName;// 账号名
	private String accountNo;// 账号
	private String refundNo; // 提现id
	private Double refundAmount; // 提现金额
	private Integer sendCount; // 发送次数
	private Integer taskState = 1; // 任务状态：1=未执行，2=执行中，3=完成，4=失败，5异常
	private String bankType; // 提现银行
	private Integer buid; // 销售渠道代码
	private String refundState;
	private Date createTime = new Date(); // 任务创建时间
	private Date startTime; // 任务开始执行时间
	private Date finishTime; // 任务执行结束时间
	private String userName; //会员账号
	private String refundTradeNo;//提现流水号
	private String logContent; //备注 失败原因
	public String getLogContent() {
		return logContent;
	}
	public void setLogContent(String logContent) {
		this.logContent = logContent;
	}
	public String getAccountName() {
		return accountName;
	}
	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}
	public String getAccountNo() {
		return accountNo;
	}
	public void setAccountNo(String accountNo) {
		this.accountNo = accountNo;
	}
	public String getRefundNo() {
		return refundNo;
	}
	public void setRefundNo(String refundNo) {
		this.refundNo = refundNo;
	}
	public Double getRefundAmount() {
		return refundAmount;
	}
	public void setRefundAmount(Double refundAmount) {
		this.refundAmount = refundAmount;
	}
	public Integer getSendCount() {
		return sendCount;
	}
	public void setSendCount(Integer sendCount) {
		this.sendCount = sendCount;
	}
	public Integer getTaskState() {
		return taskState;
	}
	public void setTaskState(Integer taskState) {
		this.taskState = taskState;
	}
	public String getBankType() {
		return bankType;
	}
	public String getBankName() {
		String bankName="";
		if(bankType.equals("102")){
			bankName="中国工商银行";
		}else if(bankType.equals("103")){
			bankName="中国农业银行";
		}else if(bankType.equals("105")){
			bankName="中国建设银行";
		}else if(bankType.equals("308")){
			bankName="招商银行";
		}else if(bankType.equals("309")){
			bankName="兴业银行";
		}else if(bankType.equals("104")){
			bankName="中国银行";
		}else if(bankType.equals("303")){
			bankName="光大银行";
		}else if(bankType.equals("403")){
			bankName="全国邮储银行";
		}else if(bankType.equals("306")){
			bankName="广东发展银行";
		}
		else {
			bankName="其他银行";
		}
		return bankName;
	}
	public void setBankType(String bankType) {
		this.bankType = bankType;
	}
	public Integer getBuid() {
		return buid;
	}
	public void setBuid(Integer buid) {
		this.buid = buid;
	}
	public String getRefundState() {
		return refundState;
	}
	public void setRefundState(String refundState) {
		this.refundState = refundState;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public Date getFinishTime() {
		return finishTime;
	}
	public void setFinishTime(Date finishTime) {
		this.finishTime = finishTime;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getRefundTradeNo() {
		return refundTradeNo;
	}
	public void setRefundTradeNo(String refundTradeNo) {
		this.refundTradeNo = refundTradeNo;
	}
	
}
